package com.ice.api.system.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.ice.api.system.entity.Log;
import com.ice.api.system.fallback.LogServiceFallback;
import com.iceframework.core.entity.Result;

/**
 * 
 * @author Palo
 *
 */
@FeignClient(value = "authority-service", fallback = LogServiceFallback.class)
public interface ILogService {
	
	@RequestMapping(value = "/sys/log/save", method = RequestMethod.POST, consumes = "application/json")
	public Result saveLog(@RequestBody Log log);
	
}
